package com.jcgyl.export.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.jcgyl.export.entity.Goods;

public interface GoodsDao {
	// 查询所有的商品
	List<Goods> findAllGoods(@Param("goodsname") String goodsname, 
			@Param("goodscode") String goodscode,
			@Param("hscode") String hscode, 
			@Param("startIndex")int startIndex,
		    @Param("pageSize")int pageSize
			);

	// 根据商品名字查询的商品
	Goods findGoodsByGoodsName(@Param("goodsname") String goodsname);

	int findRowCount(@Param("goodsname") String goodsname, @Param("goodscode") String goodscode,
			@Param("hscode") String hscode);
	
	int SetIsOk(@Param("goodsname") String goodsname);
}